<template>
  <div>
    <template v-for="item in list" :key="item.id">
       <div>{{ item.name }}</div>
    </template>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        { id: 1, name: '吃饭', isDone: true },
        { id: 2, name: '睡觉', isDone: false },
      ],
    }
  },
}
</script>
